package com.iwhalecloud.bss.kite.cucc.order.accept.chain.impl;

import com.iwhalecloud.bss.kite.cucc.order.accept.chain.AbstractOrderHandler;
import com.iwhalecloud.bss.kite.order.client.dto.OrderRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * <Description> <br>
 * 订单受理流程： 业务初始化
 * @author xiao.xuzhang<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2020年2月12日 <br>
 * @since R9.0<br>
 * @see com.iwhalecloud.bss.kite.cucc.order.accept.chain.impl <br>
 */
@Component
public class ServiceInitHandler extends AbstractOrderHandler {

    @Autowired
    private ApplicationContext applicationContext;

    @Override
    public void doHandle(OrderRequest orderRequest) {

        // 无效订单数据过滤埋点
        /*FilterInvalidOrderEvent filterInvalidOrderEvent = new FilterInvalidOrderEvent(this, orderRequest);
        applicationContext.publishEvent(filterInvalidOrderEvent);

        //在途业务拦截埋点
        OnwayOrderInterceptEvent onwayOrderInterceptEvent = new OnwayOrderInterceptEvent(this, orderRequest);
        applicationContext.publishEvent(onwayOrderInterceptEvent);

        //数据校验埋点
        DataCheckEvent dataCheckEvent = new DataCheckEvent(this, orderRequest);
        applicationContext.publishEvent(dataCheckEvent);*/
    }
}
